import axios from '@nuxtjs/axios'

// 获取列表
export function getListApi(params){
    return axios({
        url:'http://localhost:3001/msbd/msbd-list',
        method:'get',
        params
    })
}

// 新增用户
export function addMsbdApi(data){
    return axios({
        url:"http://localhost:3001/msbd/save-msbd",
        method:'post',
        data
    })
}

// 删除用户
export function deleteMsbdApi(params){
    return axios({
        url:'http://localhost:3001/msbd/delete-msbd',
        method:'get',
        params
    }) 
}

// 新增用户
export function updateMsbdApi(data){
    return axios({
        url:'http://localhost:3001/msbd/update-msbd',
        method:'post',
        data
    })
}